Optimal. Leaf size=517 \[ -\frac {\left (a+b \tanh ^{-1}(c x)\right )^3}{e (d+e x)}+\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1-c x}\right )}{2 e (c d+e)}-\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1+c x}\right )}{2 (c d-e) e}+\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1+c x}\right )}{c^2 d^2-e^2}-\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{c^2 d^2-e^2}+\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {PolyLog}\left (2,1-\frac {2}{1-c x}\right )}{2 e (c d+e)}+\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {PolyLog}\left (2,1-\frac {2}{1+c x}\right )}{2 (c d-e) e}-\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {PolyLog}\left (2,1-\frac {2}{1+c x}\right )}{c^2 d^2-e^2}+\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{c^2 d^2-e^2}-\frac {3 b^3 c \text {PolyLog}\left (3,1-\frac {2}{1-c x}\right )}{4 e (c d+e)}+\frac {3 b^3 c \text {PolyLog}\left (3,1-\frac {2}{1+c x}\right )}{4 (c d-e) e}-\frac {3 b^3 c \text {PolyLog}\left (3,1-\frac {2}{1+c x}\right )}{2 \left (c^2 d^2-e^2\right )}+\frac {3 b^3 c \text {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 \left (c^2 d^2-e^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.38, antiderivative size = 517, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 7, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.389, Rules used = {6065, 6055,
6095, 6205, 6745, 6203, 6059} \begin {gather*} -\frac {3 b^2 c \text {Li}_2\left (1-\frac {2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )}{c^2 d^2-e^2}+\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2 c (d+e x)}{(c d+e) (c x+1)}\right )}{c^2 d^2-e^2}+\frac {3 b^2 c \text {Li}_2\left (1-\frac {2}{1-c x}\right ) \left (a+b \tanh ^{-1}(c x)\right )}{2 e (c d+e)}+\frac {3 b^2 c \text {Li}_2\left (1-\frac {2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )}{2 e (c d-e)}+\frac {3 b c \log \left (\frac {2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )^2}{c^2 d^2-e^2}-\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2 c (d+e x)}{(c x+1) (c d+e)}\right )}{c^2 d^2-e^2}-\frac {\left (a+b \tanh ^{-1}(c x)\right )^3}{e (d+e x)}+\frac {3 b c \log \left (\frac {2}{1-c x}\right ) \left (a+b \tanh ^{-1}(c x)\right )^2}{2 e (c d+e)}-\frac {3 b c \log \left (\frac {2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )^2}{2 e (c d-e)}-\frac {3 b^3 c \text {Li}_3\left (1-\frac {2}{c x+1}\right )}{2 \left (c^2 d^2-e^2\right )}+\frac {3 b^3 c \text {Li}_3\left (1-\frac {2 c (d+e x)}{(c d+e) (c x+1)}\right )}{2 \left (c^2 d^2-e^2\right )}-\frac {3 b^3 c \text {Li}_3\left (1-\frac {2}{1-c x}\right )}{4 e (c d+e)}+\frac {3 b^3 c \text {Li}_3\left (1-\frac {2}{c x+1}\right )}{4 e (c d-e)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6055
Rule 6059
Rule 6065
Rule 6095
Rule 6203
Rule 6205
Rule 6745
Rubi steps
\begin {align*} \int \frac {\left (a+b \tanh ^{-1}(c x)\right )^3}{(d+e x)^2} \, dx &=-\frac {\left (a+b \tanh ^{-1}(c x)\right )^3}{e (d+e x)}+\frac {(3 b c) \int \left (-\frac {c \left (a+b \tanh ^{-1}(c x)\right )^2}{2 (c d+e) (-1+c x)}+\frac {c \left (a+b \tanh ^{-1}(c x)\right )^2}{2 (c d-e) (1+c x)}+\frac {e^2 \left (a+b \tanh ^{-1}(c x)\right )^2}{(-c d+e) (c d+e) (d+e x)}\right ) \, dx}{e}\\ &=-\frac {\left (a+b \tanh ^{-1}(c x)\right )^3}{e (d+e x)}+\frac {\left (3 b c^2\right ) \int \frac {\left (a+b \tanh ^{-1}(c x)\right )^2}{1+c x} \, dx}{2 (c d-e) e}-\frac {\left (3 b c^2\right ) \int \frac {\left (a+b \tanh ^{-1}(c x)\right )^2}{-1+c x} \, dx}{2 e (c d+e)}+\frac {(3 b c e) \int \frac {\left (a+b \tanh ^{-1}(c x)\right )^2}{d+e x} \, dx}{(-c d+e) (c d+e)}\\ &=-\frac {\left (a+b \tanh ^{-1}(c x)\right )^3}{e (d+e x)}+\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1-c x}\right )}{2 e (c d+e)}-\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1+c x}\right )}{2 (c d-e) e}+\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1+c x}\right )}{(c d-e) (c d+e)}-\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{(c d-e) (c d+e)}-\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1+c x}\right )}{(c d-e) (c d+e)}+\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{(c d-e) (c d+e)}-\frac {3 b^3 c \text {Li}_3\left (1-\frac {2}{1+c x}\right )}{2 (c d-e) (c d+e)}+\frac {3 b^3 c \text {Li}_3\left (1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 (c d-e) (c d+e)}+\frac {\left (3 b^2 c^2\right ) \int \frac {\left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1+c x}\right )}{1-c^2 x^2} \, dx}{(c d-e) e}-\frac {\left (3 b^2 c^2\right ) \int \frac {\left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1-c x}\right )}{1-c^2 x^2} \, dx}{e (c d+e)}\\ &=-\frac {\left (a+b \tanh ^{-1}(c x)\right )^3}{e (d+e x)}+\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1-c x}\right )}{2 e (c d+e)}-\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1+c x}\right )}{2 (c d-e) e}+\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1+c x}\right )}{(c d-e) (c d+e)}-\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{(c d-e) (c d+e)}+\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1-c x}\right )}{2 e (c d+e)}+\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1+c x}\right )}{2 (c d-e) e}-\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1+c x}\right )}{(c d-e) (c d+e)}+\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{(c d-e) (c d+e)}-\frac {3 b^3 c \text {Li}_3\left (1-\frac {2}{1+c x}\right )}{2 (c d-e) (c d+e)}+\frac {3 b^3 c \text {Li}_3\left (1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 (c d-e) (c d+e)}-\frac {\left (3 b^3 c^2\right ) \int \frac {\text {Li}_2\left (1-\frac {2}{1+c x}\right )}{1-c^2 x^2} \, dx}{2 (c d-e) e}-\frac {\left (3 b^3 c^2\right ) \int \frac {\text {Li}_2\left (1-\frac {2}{1-c x}\right )}{1-c^2 x^2} \, dx}{2 e (c d+e)}\\ &=-\frac {\left (a+b \tanh ^{-1}(c x)\right )^3}{e (d+e x)}+\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1-c x}\right )}{2 e (c d+e)}-\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1+c x}\right )}{2 (c d-e) e}+\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1+c x}\right )}{(c d-e) (c d+e)}-\frac {3 b c \left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{(c d-e) (c d+e)}+\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1-c x}\right )}{2 e (c d+e)}+\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1+c x}\right )}{2 (c d-e) e}-\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1+c x}\right )}{(c d-e) (c d+e)}+\frac {3 b^2 c \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{(c d-e) (c d+e)}-\frac {3 b^3 c \text {Li}_3\left (1-\frac {2}{1-c x}\right )}{4 e (c d+e)}+\frac {3 b^3 c \text {Li}_3\left (1-\frac {2}{1+c x}\right )}{4 (c d-e) e}-\frac {3 b^3 c \text {Li}_3\left (1-\frac {2}{1+c x}\right )}{2 (c d-e) (c d+e)}+\frac {3 b^3 c \text {Li}_3\left (1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 (c d-e) (c d+e)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 11.58, size = 990, normalized size = 1.91 \begin {gather*} -\frac {a^3}{e (d+e x)}-\frac {3 a^2 b \tanh ^{-1}(c x)}{e (d+e x)}-\frac {3 a^2 b c \log (1-c x)}{2 e (c d+e)}+\frac {3 a^2 b c \log (1+c x)}{2 c d e-2 e^2}-\frac {3 a^2 b c \log (d+e x)}{c^2 d^2-e^2}+\frac {3 a b^2 \left (-\frac {e^{-\tanh ^{-1}\left (\frac {c d}{e}\right )} \tanh ^{-1}(c x)^2}{\sqrt {1-\frac {c^2 d^2}{e^2}} e}+\frac {x \tanh ^{-1}(c x)^2}{d+e x}+\frac {c d \left (i \pi \log \left (1+e^{2 \tanh ^{-1}(c x)}\right )-2 \tanh ^{-1}(c x) \log \left (1-e^{-2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )-i \pi \left (\tanh ^{-1}(c x)-\frac {1}{2} \log \left (1-c^2 x^2\right )\right )-2 \tanh ^{-1}\left (\frac {c d}{e}\right ) \left (\tanh ^{-1}(c x)+\log \left (1-e^{-2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )-\log \left (i \sinh \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )\right )\right )+\text {PolyLog}\left (2,e^{-2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )\right )}{c^2 d^2-e^2}\right )}{d}+\frac {b^3 \left (\frac {x \tanh ^{-1}(c x)^3}{d+e x}+\frac {3 \left (6 c d \tanh ^{-1}(c x)^3-2 e \tanh ^{-1}(c x)^3+4 \sqrt {1-\frac {c^2 d^2}{e^2}} e e^{-\tanh ^{-1}\left (\frac {c d}{e}\right )} \tanh ^{-1}(c x)^3+6 i c d \pi \tanh ^{-1}(c x) \log \left (\frac {1}{2} \left (e^{-\tanh ^{-1}(c x)}+e^{\tanh ^{-1}(c x)}\right )\right )+6 c d \tanh ^{-1}(c x)^2 \log \left (1+\frac {(c d+e) e^{2 \tanh ^{-1}(c x)}}{c d-e}\right )-6 c d \tanh ^{-1}(c x)^2 \log \left (1-e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}\right )-6 c d \tanh ^{-1}(c x)^2 \log \left (1+e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}\right )-6 c d \tanh ^{-1}(c x)^2 \log \left (1-e^{2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )-12 c d \tanh ^{-1}\left (\frac {c d}{e}\right ) \tanh ^{-1}(c x) \log \left (\frac {1}{2} i e^{-\tanh ^{-1}\left (\frac {c d}{e}\right )-\tanh ^{-1}(c x)} \left (-1+e^{2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )\right )-6 c d \tanh ^{-1}(c x)^2 \log \left (\frac {1}{2} e^{-\tanh ^{-1}(c x)} \left (e \left (-1+e^{2 \tanh ^{-1}(c x)}\right )+c d \left (1+e^{2 \tanh ^{-1}(c x)}\right )\right )\right )+6 c d \tanh ^{-1}(c x)^2 \log \left (\frac {c (d+e x)}{\sqrt {1-c^2 x^2}}\right )+3 i c d \pi \tanh ^{-1}(c x) \log \left (1-c^2 x^2\right )+12 c d \tanh ^{-1}\left (\frac {c d}{e}\right ) \tanh ^{-1}(c x) \log \left (i \sinh \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )\right )+6 c d \tanh ^{-1}(c x) \text {PolyLog}\left (2,-\frac {(c d+e) e^{2 \tanh ^{-1}(c x)}}{c d-e}\right )-12 c d \tanh ^{-1}(c x) \text {PolyLog}\left (2,-e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}\right )-12 c d \tanh ^{-1}(c x) \text {PolyLog}\left (2,e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}\right )-6 c d \tanh ^{-1}(c x) \text {PolyLog}\left (2,e^{2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )-3 c d \text {PolyLog}\left (3,-\frac {(c d+e) e^{2 \tanh ^{-1}(c x)}}{c d-e}\right )+12 c d \text {PolyLog}\left (3,-e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}\right )+12 c d \text {PolyLog}\left (3,e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}\right )+3 c d \text {PolyLog}\left (3,e^{2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )\right )}{6 c^2 d^2-6 e^2}\right )}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 8.04, size = 3591, normalized size = 6.95
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(3591\) |
default | \(\text {Expression too large to display}\) | \(3591\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \operatorname {atanh}{\left (c x \right )}\right )^{3}}{\left (d + e x\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,\mathrm {atanh}\left (c\,x\right )\right )}^3}{{\left (d+e\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________